home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
050
/
disk_425.arc
/
RANDG.LIB
< prev
next >
Wrap
Text File
|
1985-04-03
|
383b
|
20 lines
{ -> 35 }
function randg(mean,sigma: real): real;
{ produce random numbers with a gaussian distribution }
{ MEAN and SIGMA are supplied by calling program }
{ function RANDOM is required !!! }
var
i : integer;
sum : real;
begin
sum:=0.0;
for i:=1 to 12 do
sum:=sum+random(0);
randg:=(sum-6)*sigma+mean
end; { function randg }